<!-- /ezadm/template/board/ezbbsgrp_ezbbs.htm :: 2010-03-04 :: ksb -->
<script type="text/javascript">
//<![CDATA[
function check_form(f)
{
	if (f.elements['ebgpcf_ebcfid'].selectedIndex == 0)
	{
		window.alert("게시판을 선택하세요.");
		f.elements['ebgpcf_ebcfid'].focus();
		return false;
	}
}
//]]>
</script>

<!-- group-board list ▼▼▼ -->
<table class="list">
<caption><?=$group_name?> - 게시판 목록</caption>
<col width="30%" /><col nowrap="nowrap" /><col width="15%" />
<tr>
	<th>게시판아이디</th>
	<th>게시판명</th>
	<th>삭제</th>
</tr>
<?php if (count($group_board_list)) { ?>
<?php foreach ($group_board_list as $v) { ?>
<tr class="list<?=$v['ebcf_use_flag']?>">
	<td><?=$v['ebcf_id']?></td>
	<td><?=$v['ebcf_pname']?></td>
	<td><input type="button" class="full_button" value="삭제" onclick="g_goto_delete('<?=$g_job?>', 'delete', '<?=$_GET['id1']?>', '<?=$v['ebcf_id']?>');" /></td>
</tr>
<?php } ?>
<?php } else { ?>
<tr>
	<td class="empty" colspan="3">관련 게시판이 없습니다.</td>
</tr>
<?php } ?>
</table>
<!-- group-board list ▲▲▲ -->

<br /><br />

<!-- board insert ▼▼▼ -->
<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver" onsubmit="return check_form(this);">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="insert" />
<input type="hidden" name="ebgpcf_ebgpid" value="<?=$_GET['id1']?>" />

	<table class="form2" style="width:450px;" align="center">
	<caption>관련 게시판 등록</caption>
	<col width="25%" /><col width="75%" />
	<tr>
		<th>게시판</th>
		<td>
			<select name="ebgpcf_ebcfid" class="full">
				<option value="">===== 게시판을 선택하세요 =====</option>
				<?php foreach ($board_list as $v) { ?>
				<?php if (!array_key_exists($v['ebcf_id'], $group_board_list)) { ?>
				<option value="<?=$v['ebcf_id']?>"><?=$v['ebcf_id']?> :: <?=$v['ebcf_pname']?></option>
				<?php } ?>
				<?php } ?>
			</select>
		</td>
	</tr>
	</table>

	<div class="util">
		<input type="submit" class="button" value="추가" />
		<input type="reset" class="button" value="초기화" />
		<input type="button" class="button" value="닫기" onclick="self.close();" />
	</div>


</form>
<!-- board insert ▲▲▲ -->